package com.lee

import com.baidu.ueditor.ActionEnter
import com.google.gson.JsonParser
import org.springframework.beans.factory.annotation.Value

class UeditorController {

    @Value('${file.absoulatePath}')
    private String rootPath

    def index() {
//        response.getWriter().write(new ActionEnter( request, rootPath ).exec())
        String str = new ActionEnter(request, rootPath).exec()
        render new JsonParser().parse(str).getAsJsonObject()
    }
}